function wfh = plotSpindlesDensityWeb(intervalLength, spindles, plotTitle, titleText, plotWidth, plotHeight)

global PLOT_FOR_WEB PLOT_WIDTH PLOT_HEIGHT

PLOT_FOR_WEB = true;
PLOT_WIDTH = plotWidth;
PLOT_HEIGHT = plotHeight;
                 
fh = createSpindlesDensityFigure(intervalLength, spindles, plotTitle, titleText);

%white background
set(fh, 'Color', [1 1 1]);

%figure(fh);
wfh = webfigure(fh);
delete(fh);

